package h3tcp;

import java.io.IOException;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class ServerTest {
    public static void main(String[] args) throws IOException {

       ServerSocket ss=new ServerSocket(9999);
       Socket s=ss.accept();
       InputStream is=s.getInputStream();

       byte bys []=new byte[1024];

       int len=is.read(bys);
       String str =new String(bys,0,len);
        System.out.println(str);
    }
}
